Xbasic
ONESTEP_BACKUP Function
Syntax
C OneStep_Backup()
Description
ONESTEP_BACKUP() creates a backup of the database. The process is the same as using the Tools > Backup/Restore Database > One-step Backup... command. This command depends on the settings defined using View > Settings > Backup and Tools > Backup/Restore Database > Backup Database... commands.
Example
Note : You can use the ON_DATABASE_EXIT()function to register a ONESTEP_BACKUP() command.
dim cmd as C cmd = "ui_msg_box(\"Backing up\",\"\");" cmd = cmd + "onestep_backup() ;" cmd = cmd + "a5.close() " on_database_exit(cmd)
Note : You cannot backup a database using this function until you have defined One-Step-Backup settings. You also cannot backup a Shadow Database.
See Also